package com.ruoyi.guarantee.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.guarantee.mapper.BBiddingCheckMapper;
import com.ruoyi.guarantee.domain.BBiddingCheck;
import com.ruoyi.guarantee.service.IBBiddingCheckService;

/**
 * 投标保函审核日志Service业务层处理
 *
 * @author ruoyi
 * @date 2024-11-06
 */
@Service
public class BBiddingCheckServiceImpl implements IBBiddingCheckService
{
    @Autowired
    private BBiddingCheckMapper bBiddingCheckMapper;

    /**
     * 查询投标保函审核日志
     *
     * @param id 投标保函审核日志主键
     * @return 投标保函审核日志
     */
    @Override
    public BBiddingCheck selectBBiddingCheckById(Long id)
    {
        return bBiddingCheckMapper.selectBBiddingCheckById(id);
    }

    /**
     * 查询投标保函审核日志列表
     *
     * @param bBiddingCheck 投标保函审核日志
     * @return 投标保函审核日志
     */
    @Override
    public List<BBiddingCheck> selectBBiddingCheckList(BBiddingCheck bBiddingCheck)
    {
        return bBiddingCheckMapper.selectBBiddingCheckList(bBiddingCheck);
    }

    /**
     * 新增投标保函审核日志
     *
     * @param bBiddingCheck 投标保函审核日志
     * @return 结果
     */
    @Override
    public int insertBBiddingCheck(BBiddingCheck bBiddingCheck)
    {
        bBiddingCheck.setCreateTime(DateUtils.getNowDate());
        return bBiddingCheckMapper.insertBBiddingCheck(bBiddingCheck);
    }

    /**
     * 修改投标保函审核日志
     *
     * @param bBiddingCheck 投标保函审核日志
     * @return 结果
     */
    @Override
    public int updateBBiddingCheck(BBiddingCheck bBiddingCheck)
    {
        return bBiddingCheckMapper.updateBBiddingCheck(bBiddingCheck);
    }

    /**
     * 批量删除投标保函审核日志
     *
     * @param ids 需要删除的投标保函审核日志主键
     * @return 结果
     */
    @Override
    public int deleteBBiddingCheckByIds(Long[] ids)
    {
        return bBiddingCheckMapper.deleteBBiddingCheckByIds(ids);
    }

    /**
     * 删除投标保函审核日志信息
     *
     * @param id 投标保函审核日志主键
     * @return 结果
     */
    @Override
    public int deleteBBiddingCheckById(Long id)
    {
        return bBiddingCheckMapper.deleteBBiddingCheckById(id);
    }
}
